package cn.edu.nju.oraldefense.dao;

import java.util.List;

import cn.edu.nju.oraldefense.model.Graduate;
import cn.edu.nju.oraldefense.model.Teacher;

public interface GraduateDao {
	public void save(Graduate instance);

	public List findAll();

	public int findCount();

	public int findCountByTeacher(Teacher teacher);

	public List findByPage(int start, int limit);
	
	public List findByTeacherAndPage(Teacher teacher, int start, int limit);
	
	public Graduate findById(int id);

	public List findByProperty(String propertyName, Object value);
	
	public List findByNumber(String number);

	public void update(Graduate instance);

	public void delete(Graduate instance);
}
